package com.vehicle.mapper;

import com.vehicle.pojo.Maintain;
import com.vehicle.pojo.MaintainRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaintainRecordMapper {
    /**
     * 查询所有保养记录
     * @return
     */
    public List<MaintainRecord> selectAllMaintainRecord(MaintainRecord maintainRecord);

    //根据id删除  弃用 改用假删
    @Deprecated
    public void deleteMaintainRecord(@Param("maintainid") int maintainid);

    /**
     * 删除 假删
     * @param maintainid
     */
    public void updateStatusByMaintainId(@Param("maintainid") int maintainid);

    /**
     * 增加保养记录
     * @param maintainRecord
     */
    public void addMaintainRecord(MaintainRecord maintainRecord);

    /**
     * 修改保养记录
     * @param maintainRecord
     */
    public void updateMaintainRecord(MaintainRecord maintainRecord);
}
